style->attach_count = 0;
style->colormap = NULL;
- style->depth = -1;
style->black.red = 0;
style->black.green = 0;
* @style: the object which received the signal
*
* Emitted when the style has been initialized for a particular
- * colormap and depth. Connecting to this signal is probably seldom
+ * colormap. Connecting to this signal is probably seldom
* useful since most of the time applications and widgets only
* deal with styles that have been already realized.
*
* @style: the object which received the signal
*
* Emitted when the aspects of the style specific to a particular colormap
- * and depth are being cleaned up. A connection to this signal can be useful
+ * is being cleaned up. A connection to this signal can be useful
* if a widget wants to cache objects as object data on #GtkStyle.
* This signal provides a convenient place to free such cached objects.
*
GdkColormap *colormap)
{
style->colormap = g_object_ref (colormap);
- style->depth = gdk_colormap_get_visual (colormap)->depth;
g_signal_emit (style, realize_signal, 0);
}
gint attach_count;
- gint depth;
GdkColormap *colormap;
PangoFontDescription *private_font_desc; /* Font description for style->private_font or %NULL */
{
GObjectClass parent_class;
- /* Initialize for a particular colormap/depth
- * combination. style->colormap/style->depth will have
- * been set at this point. Will typically chain to parent.
+ /* Initialize for a particular colormap. style->colormap
+ * will have been set at this point. Will typically chain
+ * to parent.
*/
void (*realize) (GtkStyle *style);